<template>
  <div>
    <p>This is a home 组件...</p>
    <hr class="cH">
    <router-link class="classC" style="text-decoration:none" to="/home/news">news</router-link>
    <router-link class="classC" style="text-decoration:none" to="/home/message">message</router-link>
    <hr class="cH">
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: "home"
  }
</script>

<style scoped>
  .classC {
    padding-left: 50px;
    font-size: 20px;
  }

  .cH {
    width: 95%;
    border: 0.5px solid #95938e;
    margin-left: -10px
  }

  /*给选中的路由增加样式，默认选中的路由会增加此class属性*/
  .router-link-active{
    color: red;
  }

</style>
